import request from '@/utils/request'

// 查询恋人对象列表
export function listMarryLovers(query) {
  return request({
    url: '/marry/marryLovers/list',
    method: 'get',
    params: query
  })
}

// 查询恋人对象详细
export function getMarryLovers(id) {
  return request({
    url: '/marry/marryLovers/' + id,
    method: 'get'
  })
}

// 新增恋人对象
export function addMarryLovers(data) {
  return request({
    url: '/marry/marryLovers',
    method: 'post',
    data: data
  })
}

// 修改恋人对象
export function updateMarryLovers(data) {
  return request({
    url: '/marry/marryLovers',
    method: 'put',
    data: data
  })
}

// 删除恋人对象
export function delMarryLovers(id) {
  return request({
    url: '/marry/marryLovers/' + id,
    method: 'delete'
  })
}

// 导出恋人对象
export function exportMarryLovers(query) {
  return request({
    url: '/marry/marryLovers/export',
    method: 'get',
    params: query
  })
}
